﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/Manager.Master" AutoEventWireup="true" CodeBehind="ManMem.aspx.cs" Inherits="BatDongSan.Manager.ManMem" Theme="cvkadmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
<div>
        <asp:Label ID="lbStatus" runat="server" ForeColor="Red"></asp:Label>
    <asp:GridView ID="grvMember" runat="server" AutoGenerateColumns="False" CssClass="TMain"
            BorderStyle="Solid" BorderWidth="1px" CellPadding="4" GridLines="Vertical" Width="100%"
            OnRowDataBound="grvMember_RowDataBound">
            <RowStyle CssClass="TItem" />
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <asp:Label ID="lblSTT" runat="server" Text='<%# Container.DataItemIndex+1 %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="10px" />
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="Email" SortExpression="Name">
                    <ItemTemplate>
                        <asp:Label ID="lbEmail" runat="server"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
               
                <asp:TemplateField HeaderText="Họ Tên" SortExpression="Name">
                    <ItemTemplate>
                        <asp:Label ID="lbName" runat="server"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False" HeaderText="Update">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtEdit" runat="server" CausesValidation="False" Text="Update"></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="50px" />
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False" HeaderText="Delete">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtDelete" runat="server" CausesValidation="False" Text="Delete"
                            OnClick="lnkbtDelete_Click"></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="50px" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle CssClass="TFooter" />
            <PagerStyle CssClass="TFooter" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <HeaderStyle CssClass="THeader" />
            <AlternatingRowStyle CssClass="TItemA" />
        </asp:GridView>
    </div>
</asp:Content>
